package com.tanhua.dubbo.api;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface PublishApi {
    void save(Publish publish);

    PageResult findByTimLine(Integer page, Integer pagesize, Long userId);

    PageResult findByRecommend(Integer page, Integer pagesize, Long userId);

    PageResult queryByUser(Integer page, Integer pagesize, Long userId);

    Publish findById(String publishId);

    PageResult queryByPage(Integer page, Integer pagesize, Long uid);

    void updateById(String publishId, Integer state);

    List<Publish> findByPids(ArrayList<Long> pidList);
}
